sum = 0  #全局变量
# print(summmmmmmmm)# name 'summmmmmmmm' is not defined
def add(a, b):
    global sum
    sum = sum + 1
    print(sum)
    print('--------')
    num = 100 # 局部变量
    num = num + 1
    #sub(a, b)
    #不推荐
    #def mul(a,b)
    #    return a*b
    return a + b,a * a + b * b
def sub(a, b):
    return a - b
result = add(10, 20)
print(result)
result = add(a=10,b=20)
print(result) # (30,500)
# 斐波那契
def fib(n):
    if n <= 2:
        return 1
    return fib(n - 1) + fib(n - 2)
print(fib(10))
for i in range(1,10+1):
    print(fib(i),end=",")